if SERVER then
	AddCSLuaFile("shared.lua")

	function SWEP:Initialize()
		self:SetWeaponHoldType("normal")
	end
end

if CLIENT then
	SWEP.PrintName = "Hands"
	SWEP.Slot = 1
	SWEP.SlotPos = 1
	SWEP.DrawAmmo = false
	SWEP.DrawCrosshair = true

	SWEP.FrameVisible = false
end

SWEP.Author = "Ploo"
SWEP.Instructions = "Your very own set of hands."
SWEP.Contact = ""
SWEP.Purpose = ""

SWEP.ViewModel			= "models/weapons/v_hands.mdl"
SWEP.WorldModel		= "models/weapons/w_hands.mdl"

SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.AnimPrefix  = "rpg"

SWEP.Spawnable = false
SWEP.AdminSpawnable = true

SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ""

SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = 0
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = ""


function SWEP:PrimaryAttack()
	if CLIENT then return end
	local ply = self.Owner
	local tr = self.Owner:GetEyeTrace()
	local ent = self.Owner:GetEyeTrace().Entity
	
	if ent:IsPlayer() then
		--self.Owner:EmitSound(self.LockSound)
	else
		--self.Owner:EmitSound(self.KnockSound)
	end
	self.Weapon:SetNextPrimaryFire(CurTime() + 2)
end

function SWEP:SecondaryAttack()
	if CLIENT then return end
	local ply = self.Owner
	local tr = self.Owner:GetEyeTrace()
	local ent = self.Owner:GetEyeTrace().Entity
	
	if ent:IsPlayer() then
		--self.Owner:EmitSound(self.LockSound)
	else
		--self.Owner:EmitSound(self.KnockSound)
	end
	self.Weapon:SetNextSecondaryFire(CurTime() + 2)
end

function SWEP:Reload()
	if CLIENT then return end
	
end